package util;

import javacc.Node;
import javacc.SimpleNode;
import javacc.Token;

public class U {

	public static String getString(Node node) {
		Token t =((SimpleNode) node).jjtGetFirstToken();
		Token last = ((SimpleNode)node).jjtGetLastToken();
		String ret = t.image;
		while (t!=last){
			t =  t.next;
			ret += " "+t.image;
		}
		return ret;
	}

	public static String toString(int i) {		
		return new Integer(i).toString();
	}

}
